
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Adapter.h"

#define IPHONE6_SIZE CGSizeMake(375, 667)
#define SIZE [UIScreen mainScreen].bounds.size
#define Adapter(x) [Adapter ratio]*x
#define AdapterFrame(x, y ,width, height) [Adapter frameFromSizeOfIphone6:CGRectMake(x, y, width, height)]
#define AdapterCenter(x, y) [Adapter pointFromSizeIphone6:CGPointMake(x, y)]
#define AdapterHight(x)   x

@interface Adapter : NSObject

+ (CGFloat)ratio;
+ (CGFloat)valueWithValue:(CGFloat)value;
+ (CGRect)frameFromSizeOfIphone6:(CGRect)frame;
+ (CGPoint)pointFromSizeIphone6:(CGPoint)point;

//适配普通屏幕
+(void)adapteFrame:(UIView *)view;



+(CGFloat)ratioForHeight;


+ (CGFloat)naRatioForHeight;

//适配navagation屏幕 如果是controller xib底部留64像素空白
+ (void)adapteNavgationFrame:(UIView *)view;
@end
